package com.test.springboottest.service;

import com.test.springboottest.domain.User;

import java.util.List;

/**
 * @author liqingbo
 */
public interface UserService {
    /**
     * 验证登录
     *
     * @param uname
     * @param upwd
     * @return
     */
    User getLoginUser(String uname, String upwd);

    /**
     * 查询用户列表
     *
     * @return
     */
    public List<User> getUserList();

    /**
     * 根据用户uid获取用户对象
     *
     * @param uid
     * @return
     */
    public User getUserByUid(Integer uid);

    /**
     * 修改用户
     *
     * @param user
     * @return
     */
    public int modifyUser(User user);

    /**
     * 添加用户
     *
     * @param user
     * @return
     */
    public int addUser(User user);

    /**
     * 删除指定id的用户
     *
     * @param uid
     * @return
     */
    public int deleteUserByUid(Integer uid);
}
